package com.aqie.haikang.dorm.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author aqie
 * @Date 2021/12/11 10:17
 * @desc
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HkEnterDTO {

    private Long id;
    private String tenantId = "528663";

    private String name;
    /**
     * 用户唯一号
     */
    
    private String code;


    /**
     * 宿舍楼编号
     */
    
    private String buildingNum;

    /**
     * 进出状态 0-进 1-出
     */
    
    private byte status;

    /**
     * 对比状态 1-成功 2-失败
     */
    
    private byte contrastStatus;


    @JsonSerialize(using = ToStringSerializer.class)
    private Long createTime;

    public HkEnterDTO(String tenantId, String name, String code, String buildingNum, byte status, byte contrastStatus, Long createTime) {
        this.tenantId = tenantId;
        this.name = name;
        this.code = code;
        this.buildingNum = buildingNum;
        this.status = status;
        this.contrastStatus = contrastStatus;
        this.createTime = createTime;
    }
}
